import type { OcrDrivingLicenseRecognitionResult } from '@/api/modules/ocr/ocr.type.ts'
import request from '@/api'

const ocrService = {
  ocrDrivingLicenseRecognition: (data: OcrDrivingLicenseRecognitionResult) => {
    return request.post('/ocr/drivingLicenseRecognition', data)
  },
  vinIdentifyVehicle: (data: any) => {
    return request.request('post', '/ucar/ocr/vinIdentifyVehicle', {
      data,
      headers: {
        'Content-Type': 'application/x-www-form-urlencoded',
      },
    })
  },
}
export default ocrService
